Skip to main content

Switch Button

Type

widget

Summary

This widget is a switch button, consisting of two mutually exclusive choices or states.

Description

This widget is a switch button, consisting of two mutually exclusive choices or states.

Children Properties

Message

NameSummarySyntax
hiliteChangedSent when the switch is changed to either the on or off positionhiliteChanged

Property

NameSummarySyntax
backColorControls the background color of the switch buttonget the backColor of <widget> set the backColor of <widget> to <pColor>
hiliteColorControls the color of the switch button when it is in the on positionget the hiliteColor of <widget> set the hiliteColor of <widget> to <pColor>
borderColorControls the color of the switch button when it is in the on positionget the borderColor of <widget> set the borderColor of <widget> to <pColor>
themeSpecifies the theme to use when drawing the switch button.get the theme of <widget> set the theme of <widget> to <pWidgetTheme>
highlightWhether the switch is on or offget the highlight of <widget> set the highlight of <widget> to {true | false}
showBorderWhether the widget has a border or not.get the showBorder of <widget> set the showBorder of <widget> to {true|false}